package com.demo.consumer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class RiskServiceImpl {


    @Autowired
    RestTemplate restTemplate;

    public String risk(){

//        String url = "http://demo-provider/instance/info";
        String url = "http://demo-provider/nsf/fault";
        String response =  restTemplate.getForObject(url, String.class);
        return  response;

    }

}
